#ifndef BINARY_QUERY_H
#define BINARY_QUERY_H
#include"Query.h"
#include "Query_base.h"
class BinaryQuery : public Query_base {
    protected:
        BinaryQuery(const Query &l,const Query &r,string op):lhs(l),rhs(r),opSym(op){}
        //抽象类: BinaryQuery不定义eval
        string rep() const override{ return "(" + lhs.rep() + " " + opSym + " " + rhs.rep() + ")"; }
        Query lhs,rhs;  //左右侧运算对象
        string opSym;   //运算符名
};
#endif 